<template>
  <!-- <div id="app"> -->
  <router-view />
  <!-- </div> -->
</template>


<script setup>
// window.location.reload()
import {
  ref,
  onMounted,
  reactive,
  toRefs,
  defineComponent,
  getCurrentInstance,
} from "vue";
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
const route = useRoute();
const app = getCurrentInstance()?.proxy;
onMounted(() => {
  console.log(route, 'index');
  console.log(router,);
  console.log(router.getRoutes());
  setTimeout(() => {
    if (route.path === '/') {
      console.log(route.path, route.fullPath);
      let dynamicRoutes = JSON.parse(localStorage.getItem('dynamicRoutes'))
      router.push(dynamicRoutes[0].path)
    }
  }, 100)
  // 

});

</script>

<style>
body {
  margin: 0;
  border: 0;
  width: 100vw;
  height: 100vh;
}
#app {
  font-family: SourceHanSansSC-regular;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  width: 100%;
  height: 100%;
  overflow-x: scroll;
  overflow: hidden;
}
</style>
